﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Figure_Finder
{
	class Shape2D
	{
		public Shape2D( List<Point> vertexes )
		{
			this.Corners = vertexes;
		}
		public List<Point> Corners { get; set; }

		public override string ToString()
		{
			if( this.Corners != null && Corners.Count > 0 )
			{
				StringBuilder sb = new StringBuilder();
				sb.Append("Figura");
				foreach(Point p in Corners)
				{
					sb.AppendLine( string.Format( "\t({0} {1})", p.X, p.Y ) );
				}
				return sb.ToString();
			}
			return null;
		}
	}
}
